package com.katze.boot.applet.ssh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.katze.boot.applet.ssh.dao.SecureSSHProcessMapper;
import com.katze.boot.applet.ssh.entity.SecureSSHProcessEntity;
import com.katze.boot.applet.ssh.service.SecureSSHProcessService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
* 说  明： 服务类
* 作  者：admin
* 日  期：2023-08-16
*/
@Service
public class SecureSSHProcessServiceImpl extends ServiceImpl<SecureSSHProcessMapper, SecureSSHProcessEntity> implements SecureSSHProcessService {

    @Override
    public List<SecureSSHProcessEntity> findProcessBySession (String sessionId) {
        return this.baseMapper.findProcessBySession(sessionId);
    }

    @Override
    public boolean saveOrUpdate(SecureSSHProcessEntity entity) {
        return super.saveOrUpdate(entity);
    }
}
